<?php
    echo "<h2> Master Advs </h2>";
    
    $status[1] = 'All';
    $status[2] = 'Menunggu Approval';
    $status[3] = 'Sudah Diterbitkan';
    $status[4] = 'Sudah Kadaluarsa';
    $status[5] = ' > 6 bulan';
    $status[6] = 'Menunggu';
    $status[7] = ' > 6 bulan';
    
    echo "<form id='filter'>";
        echo "<label id='left'>Kategori : </label>"; 
        echo "<label id='center'>".$form->select('status',$status)."</label>";
    echo "</form>";
    
    echo $ajax->observeForm('filter',
                            array('url'=>array('controller'=>'advs','action'=>'filter_admin'),
                            'update'=>'result','frequency' => 0.2)
                            );
    echo "<br>";
    echo "<div id='result'></div>";          
?>